﻿
using UnityEngine;
using System;
using SubPhysicsColliderInfo = System.Tuple<uint, BelongingSystem, ElementState>;
using ScFramework.Core;
using System.Collections.Generic;

public partial class SFuncBase
{
    protected IFuncAPI funcAPI=null;
    public void SetFuncAPI(IFuncAPI api)
    {
        funcAPI = api;
    }
    public void RemoveFuncAPI()
    {
        funcAPI = null;
    }


}

public interface IFuncAPI
{
    void StartCombine(SCore core);
    List<SubPhysicsColliderInfo> GetAllCollidersInfoInBox(Vector2 pos, Vector2 siz, LayerMask layer);

    Tuple<BelongingSystem,uint> Create(BelongingSystem sys, ElementState state, Vector2 pos);

}